<?php


namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class DriverWithdraw extends Model
{
    use Common;


    protected $table = 'driver_withdraw';


    /**
     * 司机
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     * @Author 姿势就是力量
     */
    public function driver()
    {
        return $this->belongsTo(Drivers::class, 'driver_id', 'id');
    }


    /**
     * 管理员
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     * @Author 姿势就是力量
     */
    public function admin()
    {
        return $this->belongsTo(Management::class, 'admin_id', 'id');
    }


    /**
     * 提现账号
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     * @Author 姿势就是力量
     */
    public function wallet()
    {
        return $this->belongsTo(DriverWithdrawWallet::class, 'wallet_id', 'id');
    }


}
